#include<bits/stdc++.h>
#define int long long
const int maxn = 2e5+5;
double sum;
int T,n,k,a,b;
using namespace std;
signed main()
{
    int maxx = 0;
	int minn = 1e9+5;
    vector<int>v;
    cin>>n>>a>>b;
    for(int i=1;i<=n;i++)
	{
        cin>>k;
        k %= (a+b);
        v.push_back(k);
    }
    sort(v.begin(),v.end());
    int d = v[n-1]-v[0];
    if(d<=a-1)cout<<"Yes"<<endl;
    else{
        bool ok = false;
        for(int i = 1;i<v.size();i++){
            int dx = v[i]-v[i-1]+1;
            if(dx>b+1){
                ok = true;break;
            }
        }
        if(ok)cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
    return 0;
}
